package city.spring.domain.entity.mealService;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 食物类别
 *
 * @author yzh
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("food_type")
public class FoodTypeEntity implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 食物类别
     */
    private String type;

    /**
     * 类别代码(唯一值)
     */
    private String typeCode;

    @TableField(exist = false)
    private List<FoodInfoEntity> children;

}
